  <form action='/accounts/registration/' method='post'>
  <p>{% csrf_token %}  
    <label for="username"><br />
    Логин: </label>
    <input type="text" name="username" value="" id="username">
  </p>
  <p>
    <label for="password">Пароль: </label>
    <input type="password" name="password" value="" id="password">
    <label for="сpassword"><br />
    Еще раз пароль:</label>
    <input type="password" name="rpassword" value="" id="rpassword">
    <label for="mail"><br />
    E-mail:</label>
    <input type="text" name="mail" value="" id="mail" />
     <label for="captcha"><br />
    Captcha:</label>
    <input type="text" name="captcha" value="" id="captcha" />
  <img src="/captcha/{{capname}}" width="50" height="25" />  </p>
  {{capname}}
  <p>
    <input type="submit" value="login" />
  </p>
</form>